package com.kgc.basicprovider.dao;

import com.kgc.basic.pojo.GoodsCategory;

import java.util.List;
import java.util.Map;

public interface GoodsCategoryMapper {
    //根据条件查询商品分类信息
    List<GoodsCategory> getGoodsCategoryList(Map<String,Object> paramMap);

    //根据id查询商品分类信息
    GoodsCategory getGoodsCategoryById(Integer id);

    //根据name查询商品分类信息
    GoodsCategory getGoodsCategoryByName(String name);

    //新增商品分类信息
    int insertGoodsCategory(GoodsCategory goodsCategory);

    //更新商品分类信息
    int updateGoodsCategory(GoodsCategory goodsCategory);

    //删除商品分类信息
    int delGoodsCategory(Integer id);

    //查询所有商品分类信息
    List<GoodsCategory> showGoodsCategoryList();

    //根据code查询商品分类信息
    GoodsCategory getGoodsCategoryByCode(String code);

    //根据父类Id获取所有子类分类
    List<GoodsCategory> getGoodsCategoryByParentId(Integer parentId);
}
